package com.ujiuye.bean;

/**
 * ClassName: Book <br/>
 * Description: <br/>
 * date: 2021/9/16 11:04<br/>
 *
 * @author 荒<br />
 * @since JDK 1.8
 */
public class Book {
    private int id;
    private String photo;
    private String bname;
    private double price;
    private String author;
    private String press;
    private String publicationDate;
    private int number;
    private String charge;
    private String function;
    private String type;

    public Book() {
    }

    public Book(int id, String photo, String bname, double price, String author, String press, String publicationDate, int number, String charge, String function, String type) {
        this.id = id;
        this.photo = photo;
        this.bname = bname;
        this.price = price;
        this.author = author;
        this.press = press;
        this.publicationDate = publicationDate;
        this.number = number;
        this.charge = charge;
        this.function = function;
        this.type = type;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getBname() {
        return bname;
    }

    public void setBname(String bname) {
        this.bname = bname;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPress() {
        return press;
    }

    public void setPress(String press) {
        this.press = press;
    }

    public String getPublicationDate() {
        return publicationDate;
    }

    public void setPublicationDate(String publicationDate) {
        this.publicationDate = publicationDate;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getCharge() {
        return charge;
    }

    public void setCharge(String charge) {
        this.charge = charge;
    }

    public String getFunction() {
        return function;
    }

    public void setFunction(String function) {
        this.function = function;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", photo='" + photo + '\'' +
                ", bname='" + bname + '\'' +
                ", price=" + price +
                ", author='" + author + '\'' +
                ", press='" + press + '\'' +
                ", publicationDate='" + publicationDate + '\'' +
                ", number=" + number +
                ", charge='" + charge + '\'' +
                ", function='" + function + '\'' +
                ", type='" + type + '\'' +
                '}';
    }
}
